import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import './style.css'
import App from './App.vue'
import router from './router';



const app=createApp(App);

import * as ElementPlusIcons from '@element-plus/icons-vue' //主要1
for (let iconName in ElementPlusIcons) {  //主要2
  app.component(iconName, ElementPlusIcons[iconName])
}

app.use(ElementPlus,{locale:zhCn});
app.use(router);
app.mount("#app")
